{% extends "admin/admin.html" %}

{% block  content%}
<div class="box-body table-responsive no-padding">
    {% include 'admin/alert_info.html' %}
    <table class="table table-hover">
        <tbody>
        <tr>
            <th>编号</th>
            <th>管理员名称</th>
            <th>管理员类型</th>
            <th>管理员角色</th>
            <th>添加时间</th>
        </tr>
        {% for admin in page_admins.items %}
            <tr>
                <td>{{ admin.id }}</td>
                <td>{{ admin.name }}</td>
                <td>{% if admin.is_super == 0 %}超级管理员{% else %}普通管理员{% endif %}</td>
                <td>{{ admin.role.name }}</td>
                <td>{{ admin.add_time }}1</td>
            </tr>
        {% endfor %}
        </tbody>
    </table>
</div>
<div class="box-footer clearfix">
    {% import 'ui/admin_page.html' as pg %}
    {{ pg.page(page_admins, 'admin.admin_list') }}
</div>

{% endblock  content%}


